package com.market.member.enums;

import lombok.Getter;

/**
 * 登录类型
 *
 */
@Getter
public enum LoginTypeEnum {

    VERIFY("0", "验证码登录"),
    QUICK("1", "一键登录"),
    UNION("2", "联登"),
    MOBILE("3", "直接登陆"),
    RANDOM("5", "随机手机号"),
    LOCALVERIFY("6", "本机校验"),// 网易易盾
    UNIONLOGIN("7", "联登"),
    ;

    String value;
    String desc;

    LoginTypeEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static boolean containsKey(String key){
        for (LoginTypeEnum item: values()){
            if (item.getValue().equals(key)){
                return true;
            }
        }
        return false;
    }

}
